package com.example.wallet.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.wallet.bean.AccountInfo

@Dao
interface AccountInfoDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun save(user_info: AccountInfo?): Long

    @Query("select *from account_info where `address`=:address")
    fun getCache(address: String?): AccountInfo?
}